﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="frmReporteCarreraMayorParticipacion.aspx.vb" Inherits="WebReportes.frmReporteCarreraMayorParticipacion" %>
<%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <br />
    <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" 
        DataSourceID="SqlDataSource2" DataTextField="nombre" 
        DataValueField="id_carrera" Height="23px" Width="178px">
    </asp:DropDownList>
&nbsp;&nbsp;
    <asp:Button ID="Button1" runat="server" Text="Generar Reporte" Width="129px" />
&nbsp;<asp:SqlDataSource ID="SqlDataSource2" runat="server" 
        ConnectionString="<%$ ConnectionStrings:SAFSDB1ConnectionString %>" 
        SelectCommand="SELECT [id_carrera], [nombre] FROM [T_Carrera]">
    </asp:SqlDataSource>
    <br />
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <br />
    <rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" 
        Font-Size="8pt" InteractiveDeviceInfos="(Collection)" 
        style="margin-right: 205px" WaitMessageFont-Names="Verdana" 
        WaitMessageFont-Size="14pt" Width="626px">
        <LocalReport ReportPath="Reportes\ReporteCarreraMayorParticipacionForordlc.rdlc">
            <DataSources>
                <rsweb:ReportDataSource DataSourceId="SqlDataSource3" Name="SAFSDBDataSet" />
            </DataSources>
        </LocalReport>
    </rsweb:ReportViewer>
    <asp:SqlDataSource ID="SqlDataSource3" runat="server" 
        ConnectionString="<%$ ConnectionStrings:SAFSDB1ConnectionString %>" 
        SelectCommand="sp_carrera_mejor_nota_participacion_foro" 
        SelectCommandType="StoredProcedure">
        <SelectParameters>
            <asp:ControlParameter ControlID="DropDownList1" Name="idCarrera" 
                PropertyName="SelectedValue" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
</asp:Content>
